home *** CD-ROM | disk | FTP | other *** search
- Echo Off
- If exist sdl_get.exe goto start
- Echo Unable to locate the file sdl_get.EXE. This file is on your
- Echo original MASDIR disk or a backup copy. Please run INSTALL again
- Echo from the drive and/or directory that contains the MASDIR files.
- :start
- sdl_get BE %A%
- Echo * * *
- Echo With your permission, INSTALL will copy a few of the MASDIR files
- Echo to your hard disk or to another floppy. No changes will be made
- Echo to your AUTOEXEC.BAT or to your CONFIG.SYS. You may abort this
- Echo program at any time by pressing Ctrl-C or Ctrl-Break. You may
- Echo also press Esc at any prompt to cancel the rest of the program.
- Echo Do not press Enter or Return after you press another key unless you
- Echo have been asked to enter more than one character at a prompt.
- :getdrive
- sdl_get YE
- Set D=%GET%
- If exist %D%:sdl.com goto isthere
- :whatdrive
- Echo * * *
- Echo The current drive is %D%:
- Echo SDL.COM does not appear to be on this drive. Please enter the
- Echo one-letter designator of the drive where the MASDIR disk is.
- :again
- Echo SDL.COM was not found on the drive you specified. If it is in
- Echo a subdirectory on that drive we can make that subdirectory
- Echo current for the drive so SDL.COM can be found. If so,
- Echo enter the drive:\directory, or just Return if you want to exit
- Echo to change disks or directories. Press Return after you make your entry.
- Echo * * *
- sdl_get S "Please enter the drive:\directory to find SDL.COM: "
- if not errorlevel 1 goto exit
- Set D=%GET%
- if not errorlevel 2 goto exist
- cd %D%
- Echo That should do it, now please enter the one-letter drive
- Echo designator for that same disk. This is necessary for proper
- Echo operation of INSTALL.
- :askdrive
- Echo * * *
- sdl_get C "Enter one letter (a,b,c,d,e,f,g,h,i): " ABCDEFGHI}~
- If %GET% == ~ go to exit
- If %GET% == } goto getdrive
- Set D=%GET%
- :exist
- If not exist %D%:sdl.com goto again
- :ISTHERE
- Echo * * *
- Echo To skip the action of any question, just press Enter or Return.
- Echo * * *
- Echo SDL.COM is an excellent replacement for the DOS DIR command.
- Echo It is much more versatile than DIR. The first step is to copy
- Echo SDL.COM to the directory with your other DOS command files and/or
- Echo your other utility programs. Please enter the drive and
- :askdest
- Echo directory that you want SDL.COM to be copied to. The directory
- Echo must already exist, and it should be one that is normally on your
- Echo DOS path. For example, you might enter C:\DOS, or C:\BIN, or
- Echo C:\UTIL if you use one of those directories for executable files.
- :ENTER
- Echo * * *
- sdl_get S "Please enter the drive:\directory now: "
- If not errorlevel 1 goto next1
- Set P=%GET%
- IF EXIST %P%\NUL GOTO COPY
- Echo %P% does not appear to be a valid drive and directory.
- GOTO ENTER
- :COPY
- Echo You have entered %P%
- Echo The command will be COPY %D%:SDL.COM %P%\SDL.COM
- sdl_get C "Is this correct (Y,N)? " YN}~
- If %GET% == ~ goto exit
- If %GET% == } goto next1
- If not errorlevel 89 goto isthere
- COPY %D%:SDL.COM %P%\SDL.COM
- IF NOT EXIST %P%\SDL.COM GOTO NOCOPY
- IF (%SDL%) == () SET SDL=S
- IF (%SDL%) == () GOTO next1
- Echo This is a test of running SDL in its new location.
- Echo If SDL pauses with a menu, just press Esc.
- pause
- %P%\SDL %P%\sdl.com/M/C-
- If errorlevel 1 goto next1
- :NOCOPY
- Echo For some reason SDL does not seem to have been copied to the
- Echo destination you specified. Please re-enter the drive and
- goto askdest
- :next1
- Pause
- Echo * * *
- Echo The next step is to create a working disk or directory for you
- Echo to customize SDL.COM. If you don't want to do this now, press Esc
- Echo or Return at the prompt.
- ECHO * * *
- ECHO This program will create a working disk or directory
- ECHO for the purpose of running the SDLSETUP program.
- ECHO * * *
- ECHO It is necessary to enter the drive and/or directory
- ECHO that you want to use for the working area. A RAM disk
- ECHO would be ideal because it speeds things up and once
- ECHO you customize SDL.COM the way you want it, it is not
- ECHO necessary to save the working directory. A directory on
- Echo a hard disk works very well also, and the work can easily
- Echo be done on a floppy but it will be a little slower.
- ECHO * * *
- ECHO Enter the drive and/or directory that you want to use. If you
- Echo include a directory, be sure that the directory exists, or that
- Echo it is OK to use the DOS MD (Make Directory) command to create it.
- ECHO * * *
- ECHO Some examples of what you might enter are:
- ECHO B: E: C:\SDL D:\MASDIR
- sdl_get S "Please enter the drive:\directory now: "
- If not errorlevel 1 goto exit
- Set P=%GET%
- if exist %P%\NUL goto MDOK
- Echo * * *
- ECHO Creating a working area for SDLSETUP as %P%.
- echo If you see the message "Unable to create directory"
- ECHO it means that the directory already exists, that it is a
- echo ROOT directory, or that the specification was incorrect.
- ECHO This does NOT indicate a problem unless you have made
- ECHO a mistake in your specification.
- echo * * *
- ECHO The command will be: MkDir %P%
- sdl_get C "Is this correct (Y,N)? " YN~}
- If errorlevel 125 goto exit
- if errorlevel 78 if not errorlevel 79 goto next1
- md %P%
- :MDOK
- Echo The next command will be COPY %D%:SDL*.* %P%
- sdl_get C "Is this correct (Y,n)? " YN}~
- If errorlevel 125 goto exit
- If not errorlevel 89 goto next1
- copy %D%:sdl*.* %P%
- echo Files copied to %P%
- :exit
- Sdl_get BE %A%
- Set D=
- Set P=
- If exist menu.bat menu
- Set A=
- Set GET=
- Echo Exiting to DOS now!
- If exist utility.bat utility